package com.jerry.chat;

public class Ret {
    private int status;
    private String msg;
    private Object object;

    public Ret(int status) {
        this.status = status;
    }

    public static Ret succeed() {
        return new Ret(200);
    }

    public static Ret error() {
        return new Ret(404);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public Ret setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getObject() {
        return object;
    }

    public Ret setObject(Object object) {
        this.object = object;
        return this;
    }
}
